/**
 * Created by seeker910 on 2018/3/6.
 */
Rsd.define('Rsd.Faith.stores.ObjectStore', {
    extend: 'Rsd.data.Store',
    xtype: 'objectStore',
    singleton:true,
    constructor: function (config) {
        config = config || {};
        Rsd.apply(this, config);
        var me = this;
        me.proxy = Rsd.app.getService('Biz.GetObject',{});
    },
    /*
     *
     * */
    load: function load (modelType,key,callback) {
        var _args = {modelType:modelType,id:key};
        if(Rsd.isEmpty(_args.modelType))
        {
            this.warn('argument modelType is empty.');
            return;
        }
        if(Rsd.isEmpty(_args.id))
        {
            this.warn('argument modelType is empty.');
            return;
        }
        this.callParent(_args,callback);
    }
});